﻿<UserControl x:Class="NeuralProto.NeuralWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  Background="White">
    <Grid>
        <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top" Background="Transparent"  MouseDown="drawImage_MouseDown" MouseMove="drawImage_MouseMove" MouseUp="drawImage_MouseUp" Margin="8,30.5,0,0">
        	<Image x:Name="drawImage" Width="100" Height="150" HorizontalAlignment="Left" />
		</Border>
    	<TextBlock HorizontalAlignment="Left" Height="18.5" Margin="8,8,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="83"><Run Language="fi-fi" Text="Draw here"/></TextBlock>
    	<Button x:Name="btnTrain" Click="btnTrain_Click" Content="ReTrain" Height="32.5" Margin="120,150,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="128"/>
    	<TextBlock Height="21.5" Margin="120,33.5,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="Error rate:" HorizontalAlignment="Left" Width="77"/>
    	<TextBlock Height="21.5" Margin="120,59,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="Match:" HorizontalAlignment="Left" Width="77"/>
        <TextBlock Height="21.5" Margin="120,85,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="Status:" HorizontalAlignment="Left" Width="77"/>
    	<TextBlock x:Name="txtError" Height="21.5" Margin="197,33.5,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding Error}" HorizontalAlignment="Left" Width="77"/>
        <TextBlock x:Name="txtMatch" Height="21.5" Margin="197,59,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding MatchedHigh}" RenderTransformOrigin="1.649,0.512" HorizontalAlignment="Left" Width="77"/>
        <TextBlock x:Name="txtStatus" Height="21.5" Margin="197,85,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding Status}" RenderTransformOrigin="1.649,0.512" HorizontalAlignment="Left" Width="77"/>
    </Grid>
</UserControl>
